<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>商家中心</title>
<link href="__CSS__/base.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="__CSS__/layui.css">
<link href="__CSS__/seller_center.css" rel="stylesheet" type="text/css">
<link href="__CSS__/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<!--[if IE 7]>
  <link rel="stylesheet" href="__CSS__/font-awesome/css/font-awesome-ie7.min.css">
<![endif]-->
 <script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script type="text/javascript" src="__JS__/seller.js"></script>
<script type="text/javascript" src="__STATIC__/js/waypoints.js"></script>
<script type="text/javascript" src="__STATIC__/js/jquery-ui/jquery.ui.js"></script>
<script type="text/javascript" src="__STATIC__/js/jquery.validation.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/common.js"></script>
<script type="text/javascript" src="__STATIC__/js/member.js" charset="utf-8"></script>
<script type="text/javascript" src="__STATIC__/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
<script type="text/javascript" src="__STATIC__/js/perfect-scrollbar.min.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="__STATIC__/js/html5shiv.js"></script>
      <script src="__STATIC__/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<script>
    var SITEURL = 'http://www.baidu.com';
</script>
<script type="text/javascript" src="__STATIC__/js/ToolTip.js"></script>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<!--<div class="store-closed"><i class="icon-warning-sign"></i>-->
  <!--<dl>-->
    <!--<dt>您的店铺已被平台关闭</dt>-->
    <!--<dd>关闭原因：</dd>-->
    <!--<dd>在此期间，您的店铺以及商品将无法访问；如果您有异议或申诉请及时联系平台管理。</dd>-->
  <!--</dl>-->
<!--</div>-->
<div class="ncsc-head-layout" style="background-color: #FFF; ">
    <div class="wrapper" style="text-align:center">
        <div class="center-logo"> <a href="" target="_blank"><img src="__IMG__/logo.png" class="pngFix" alt=""/></a>
        </div>
    <nav class="ncsc-nav" style="margin-right: 367px;">
        <div class="tool" style="  margin-top: -20px; color: #0b0b0b;">
            <div class="breadcrumb">
                <div class="Weather">
                    <iframe width="420" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&amp;id=12&amp;icon=1&amp;num=5"> </iframe>
                </div>
                <div class="Calendar" style="    margin-top: -57px; margin-left: 55%;  font-size: 12px;color: #0b0b0b;"><b><img src="/template/default/static/images/Calendar.png"></b>
                    <div style="margin-left: 23%; margin-top: -24px;">
                        <div id="date">{$tday_time.day_data}</div><font color="#f85455">星期{$tday_time.tday_week}<span id="wk"></span></font>&nbsp;<span id="clk"></span>
                    </div>
                </div>
            </div>
        </div>
    </nav>
      </div>
</div>
<header class="ncsc-head-layout w">
  <div class="wrapper">
    <div class="center-logo"> <a href="" target="_blank"><img src="" class="pngFix" alt=""/></a>
    </div>
    <div class="index-search-container">
    </div>
      <nav class="ncsc-nav">
          <dl class="">
              <dt><a href="/seller">首页</a></dt>
              <dd class="arrow"></dd>
          </dl>
          {if (!empty($menu)) && (is_array($menu))}
          {volist name="menu" id="vo" key="key"}
          <dl class="{eq name="$current_menu.model" value=$key} current{/eq}">
              <dt><a href="{$vo['child'][0]['url']}">{$vo.name}</a></dt>
              <dd>
              </dd>
              <dd class="arrow"></dd>
          </dl>
          {/volist}
          {/if}
      </nav>
  </div>
</header>
<div class="ncsc-layout wrapper">
  <div id="layoutLeft" class="ncsc-layout-left">
    <div id="sidebar" class="sidebar">
      <div class="column-menu">
          <ul id="seller_center_left_menu">
              {if (!empty($left_menu)) && (is_array($left_menu))}
              {volist name="left_menu" id="submenu_value" key="key"}
              <li class="{eq name="$submenu_value.act" value="$act"}current{/eq}"><a href="{$submenu_value.url}">{$submenu_value.name}</a> </li>
              {/volist}
              {/if}
          </ul>
      </div>
    </div>
  </div>
  <div id="layoutRight" class="ncsc-layout-right">
   <div class="ncsc-path"><i class="icon-desktop"></i>商家管理中心<i class="icon-angle-right"></i>{$current_menu.model_name}<i class="icon-angle-right"></i>{$current_menu.name}</div>
      <div class="main-content" id="mainContent">
          {block name="main"}
          {/block}
      </div>
  </div>
</div>
<div class="left-slide">
    <ul>
        <li>
            <a class="con">
                <p>
                    <i class="layui-icon">&#xe62d;</i>
                </p>
                <p>报表</p>
            </a>
        </li>
        <li>
            <a href="#">
                <p>
                    <i class="layui-icon">&#xe645;</i>
                    <small>4</small>
                </p>
                <p>通知</p>
            </a>
        </li>
        <li>
            <a href="#">
                <p>
                    <i class="layui-icon">&#xe60e;</i>
                    <small>4</small>
                </p>
                <p>共享信息</p>
            </a>
        </li>
        <li>
            <a href="#">
                <p><i class="layui-icon">&#xe614;</i>
                </p>
                <p>设置</p>
            </a>
        </li>
        <li>
            <a href="#">
                <p><i class="layui-icon">&#xe607;</i>
                </p>
                <p>帮助</p>
            </a>
        </li>
        <li>
            <a href="#">
                <p><i class="layui-icon">&#xe631;</i>
                </p>
                <p>快捷键</p>
            </a>
        </li>
    </ul>
</div>
<div class="wrapper">
</div>
<script type="text/javascript">
</script>
<script type="text/javascript">
$(document).ready(function(){
    //添加删除快捷操作
    $('[nctype="btn_add_quicklink"]').on('click', function() {
        var $quicklink_item = $(this).parent();
        var item = $(this).attr('data-quicklink-act');
        if($quicklink_item.hasClass('selected')) {
            $.post("", { item: item }, function(data) {
                $quicklink_item.removeClass('selected');
                $('#quicklink_' + item).remove();
            }, "json");
        } else {
            var count = $('#quicklink_list').find('dd.selected').length;
            if(count >= 8) {
                showError('快捷操作最多添加8个');
            } else {
                $.post("", { item: item }, function(data) {
                    $quicklink_item.addClass('selected');

                        var $link = $quicklink_item.find('a');
                        var menu_name = $link.text();
                        var menu_link = $link.attr('href');
                        var menu_item = '<li id="quicklink_' + item + '"><a href="' + menu_link + '">' + menu_name + '</a></li>';
                        $(menu_item).appendTo('#seller_center_left_menu').hide().fadeIn();
                }, "json");
            }
        }
    });
    //浮动导航  waypoints.js
    $("#sidebar,#mainContent").waypoint(function(event, direction) {
        $(this).parent().toggleClass('sticky', direction === "down");
        event.stopPropagation();
        });
    });
    // 搜索商品不能为空
    $('input[nctype="search_submit"]').click(function(){
        if ($('input[nctype="search_text"]').val() == '') {
            return false;
        }
    });
</script>
<script>
    window.onload=function(){
//定时器每秒调用一次fnDate()
        setInterval(function(){
            fnDate();
        },1000);
    }
    //js 获取当前时间
    function fnDate(){
        var oDiv=document.getElementById("clk");
        var date=new Date();
//        var year=date.getFullYear();//当前年份
//        var month=date.getMonth();//当前月份
//        var data=date.getDate();//天
        var hours=date.getHours();//小时
        var minute=date.getMinutes();//分
        var second=date.getSeconds();//秒
        var time=fnW(hours)+":"+fnW(minute)+":"+fnW(second);
        oDiv.innerHTML=time;
    }
    //补位 当某个字段不是两位数时补0
    function fnW(str){
        var num;
        str>10?num=str:num="0"+str;
        return num;
    }
</script>
<div id="tbox">
  <div class="btn" id="msg"><a href=""><i class="msg"><em></i>站内消息</a></div>
  <div class="btn" id="im"><i class="im"><em id="new_msg" style="display:none;"></em></i><a href="javascript:void(0);">在线联系</a></div>
  <div class="btn" id="gotop" style="display:none;"><i class="top"></i><a href="javascript:void(0);">返回顶部</a></div>
</div>
</body>
</html>
